# Start of the makefile
# Defining variables
target = sqcoax.f95
objects = select_precision.o constants.o dispmodule.o complete_elliptic.o mymodule.o
f90comp = gfortran
switch = -pedantic 
# Makefile
sqcoax: $(objects) $(target)
	$(f90comp) -o sqcoax.bin $(switch) $(objects) $(target)
%.o: %.f95
	$(f90comp) -c $(switch) $<
# Cleaning everything
clean:
	rm -f *.mod 
	rm -f $(objects)
# End of the makefile